package kr.co.doriclassic.powerjava.chapter09;

public class StaticTest {
	public static final int s=0;
	public static final int t;
	//static 영역 초기화
	static{
		System.out.println("static 초기화 영역");
		t=5;
	}
	
	public StaticTest() {
		System.out.println("생성자 영역");
	}

	public static void main(String[] args) {
		add(10,20);
		System.out.println(StaticTest.s);
		System.out.println(StaticTest.t);
		
		StaticTest st = new StaticTest();
		
	}
	
	static int add(int a, int b){
		return a+b;
	}
}
